package com.hainatong.mvvmbase.utils;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.content.SharedPreferences;


/**
 * SharedPreferences存储工具类
 */
public class TokenSPUtils
{

    private static final String CONFIG = "config";


    public static SharedPreferences getSharedPreference(Context context)
    {
        return context.getSharedPreferences(CONFIG, Context.MODE_PRIVATE);
    }

    /**
     * 获取String的value
     */
    public static String getSUPToken(Context context,String key)
    {
        SharedPreferences sharedPreference = getSharedPreference(context);
        return sharedPreference.getString(key, "");
    }
}
